package com.ej.web.controller.ej.app;

import com.ej.busi.dto.catalogue.EjCatalogueDto;
import com.ej.busi.service.IEjCatalogueService;
import com.ej.common.core.controller.BaseController;
import com.ej.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ej
 * @date 2025-08-11
 */
@RestController
@RequestMapping("/ej/app/catalogue")
@Api("【备忘录】Controller")
public class EjAppCatalogueController extends BaseController {

    @Autowired
    private IEjCatalogueService ejCatalogueService;

    /**
     * 获取用户的备忘录
     * @return
     */
    @RequestMapping("userCatalogueList")
    public AjaxResult<List<EjCatalogueDto>> userCatalogueList(String courseName){
        return AjaxResult.success(ejCatalogueService.userCatalogueList(courseName));
    }

}
